package org.ihelpuoo.weboo.bean;

import java.util.List;

public class ModuleBean
{

	private String					name;
	private String					actionHome;
	private String					styleHome;
	private String					configFile;
	private String					messageFile;
	private String					inputCharset;
	private String					outputCharset;
	private String					installer;
	private String					uninstaller;
	private List<ControllerBean>	controllers;
	private String					comment;

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getActionHome()
	{
		return actionHome;
	}

	public void setActionHome(String actionHome)
	{
		this.actionHome = actionHome;
	}

	public String getStyleHome()
	{
		return styleHome;
	}

	public void setStyleHome(String styleHome)
	{
		this.styleHome = styleHome;
	}

	public String getConfigFile()
	{
		return configFile;
	}

	public void setConfigFile(String configFile)
	{
		this.configFile = configFile;
	}

	public String getMessageFile()
	{
		return messageFile;
	}

	public void setMessageFile(String messageFile)
	{
		this.messageFile = messageFile;
	}

	public String getInputCharset()
	{
		return inputCharset;
	}

	public void setInputCharset(String inputCharset)
	{
		this.inputCharset = inputCharset;
	}

	public String getOutputCharset()
	{
		return outputCharset;
	}

	public void setOutputCharset(String outputCharset)
	{
		this.outputCharset = outputCharset;
	}

	public String getInstaller()
	{
		return installer;
	}

	public void setInstaller(String installer)
	{
		this.installer = installer;
	}

	public String getUninstaller()
	{
		return uninstaller;
	}

	public void setUninstaller(String uninstaller)
	{
		this.uninstaller = uninstaller;
	}

	public List<ControllerBean> getControllers()
	{
		return controllers;
	}

	public void setControllers(List<ControllerBean> controllers)
	{
		this.controllers = controllers;
	}

	public String getComment()
	{
		return comment;
	}

	public void setComment(String comment)
	{
		this.comment = comment;
	}

	public void mergeWith(ModuleBean bean)
	{
		if (actionHome == null)
			actionHome = bean.actionHome;
		if (actionHome == null)
			actionHome = bean.actionHome;
		if (styleHome == null)
			styleHome = bean.styleHome;
		if (configFile == null)
			configFile = bean.configFile;
		if (messageFile == null)
			messageFile = bean.messageFile;
		if (inputCharset == null)
			inputCharset = bean.inputCharset;
		if (outputCharset == null)
			outputCharset = bean.outputCharset;
	}

}
